{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>系统消息详情</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">标题：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$notice.notice_title}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8 form-group" id="notice_range">
                            <label class="layui-form-label">接收用户：</label>
                            <div class="layui-input-block">
                                {if $notice.notice_range == 1}
                                <input type="text" class="layui-input" value="全部用户" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="部分用户" disabled>
                                {/if}
                            </div>
                        </div>

                        {if $notice.notice_range == 2}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">用户：</label>
                            <div class="layui-input-block">
                                <textarea class="layui-textarea" rows="10" cols="20" disabled>{$notice.notice_user}</textarea>
                            </div>
                        </div>
                        {/if}

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">消息内容：</label>
                            <div class="layui-input-block" id="LAY_editor" lay-verify="editor">
                                <p>{$notice.notice_content}</p>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script>
    var editor = wk.wang({elem:'#LAY_editor'});
</script>

</body>
</html>
